<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<title></title>
	<style type="text/css">
		*{
			margin: 0;
			padding: 0;
		}
		.clearFix::after{
			content: "";
			clear: both;
			display: block;
		}
		.box{
			margin: 10px auto;
			width: 1000px;
			height: 50px;
		}
		.logo{
			margin-left: 20px;
			margin-right: 30px;
			width: 50px;
			height: 50px;
			background-image: url(../小米logo.png);
			background-size: cover;
			float: left;
			vertical-align: middle;
		}
		.box>a{
			height: 50px;
			line-height: 50px;
			font-size: 19px;
			float: left;
			position: relative;
			text-decoration: none;
			color: black;
			margin-right:30px ;

		}
/*		a>div{
			height: 300px;
			width: 600px;
			background-image: url(../小猫.jpg);
			position: absolute;
			left: 50%;
			margin-left: -50px;
			display: none;*/
		}
		.box>a:hover{
			color: orange;
		}
		.box>a:hover div{
			display: block;
		}
		.four{
			position: relative;
		}
		.four>div{
			margin-top: 10px;
			width: 1000px;
			height: 200px;
			position: absolute;
			right: 50%;
			margin-right:-500px ;
			display: none;
		}
		.four-one>div:nth-of-type(1){
			width: 200px;
			height: 300px;
			background-color: blue;
			float: left;
			margin-left: 50px;
			margin-right:30px ;
		}
		.four-one>div:nth-of-type(2){
			width: 200px;
			height: 300px;
			background-color: pink;
			float: left;
			margin-right:30px ;
		}
		.four-one>div:nth-of-type(3){
			width: 200px;
			height: 300px;
			background-color: aqua;
			float: left;
			margin-right:30px ;
		}
		.four-one>div:nth-of-type(4){
			width: 200px;
			height: 300px;
			background-color: green;
			float: left;
			margin-right:30px ;
		}
	</style>
</head>
<body>
	<div class="box clearFix">
		<div class="logo"></div>
		<a href="">
			全部分类
			<div>
				
			</div>
		</a>
		<a href="">
			Xiaomi手机
			<div></div>
		</a>
		<a href="">
			REDMI手机
			<div></div>
		</a>
		<a class="four" href="">
			电视
			<div class="four-one">
				<div></div>
				<div></div>
				<div></div>
				<div></div>
			</div>
		</a>
		<a href="">
			笔记本
			<div></div>
		</a>
		<a href="">
			家电
			<div></div>
		</a>
		<a href="">
			路由器
			<div></div>
		</a>
		<a href="">
			服务中心
			<div></div>
		</a>
		<a href="">
			社区
			<div></div>
		</a>
	</div>

</body>
</html>